package com.andyage.admin.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.andyage.admin.bean.AdShareBean;
import com.andyage.admin.dao.AdShareMapper;
import com.andyage.admin.service.IAdShareService;
import com.andyage.util.JsonContent;
@Service
public class AdShareServiceImpl implements IAdShareService {
	@Resource
	private AdShareMapper adshareMapper;
	@Override
	public String queryAdShareInfo(AdShareBean shareBean) throws Exception {
		List<AdShareBean> list = adshareMapper.queryAdShareInfo(shareBean);
		int total = adshareMapper.queryAdShareInfoCount(shareBean);
		return JsonContent.getJsonArray(list, total);
	}

}
